/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.br.imovel.ejb;

import com.br.imovel.model.Administrador;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author diego
 */
@Stateless
public class AdministradorEJBLocal extends EJBFacade<Administrador>  {

   
    
    @PersistenceContext(unitName = "com.br.imovel_ERP")
    private EntityManager em;
    
    private static final String ordenacao =  "nome";
    private static final String ordem = "asc" ;
    
  
    @Override
    protected EntityManager getEntityManager() {
        return em;
    }

    public AdministradorEJBLocal() {
        super(Administrador.class, ordenacao, ordem);
    }
   
}
